<!DOCTYPE HTML>
<html xmlns:th="http://www.thymeleaf.org" 
      xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity4">
	<head>
		<meta content="text/html; charset=UTF-8" />
		<title>人物管理系统</title>
		<link th:href="@{/css/css_admin.css}" rel="stylesheet" type="text/css" />
		<link th:href="@{/css/style.css}" rel="stylesheet" type="text/css" />
		<script type="text/javascript" th:src="@{/webjars/jquery/3.2.1/jquery.min.js}"></script>
				
		<script type="text/JavaScript">
			var $ = function(id) {
				return document.getElementById(id);
			}
			
			function showMenu(num){
				//显示当前标签
				if ($('fu0' + num)) {
					if ($('fu0' + num).style.display == "block") {
						$('fu0' + num).style.display = "none";
						$('fl0' + num).className = "unexpand";
						$('fa0' + num).className = "";
					} else {
						$('fl0' + num).className = "expand";
						$('fa0' + num).className = "select";
						$('fu0' + num).style.display = "block";
					}
				}
			}
			
			function g(x){
		         d=document.getElementsByTagName('li');
		         for(p=d.length;p--;){
		             if(d[p].id!=x){
		            	 d[p].style.cssText='background:none';
	            	 }else{
	            		 d[p].style.cssText='color:#fff; background:url(/images/admin/zyn_leftnavtwoh.png) no-repeat 18px 0px #C6CBD5';/*点击的*/	 
	            	 }
		             
		         }
	         }
		</script>
			
	</head>
<body>
<div style="overflow:hidden">
<!--~~~~~~~~~top~~~~~~~~~~~~~-->
	<div class="x_tpbx boxcenter">
	  <div class="x_logobx"><img th:src="@{/images/admin/x_logopic.jpg}" width="208" height="32" /></div>
	  <ul>
		<li class="x_tcbx"><a href="javascript:void(0);" onclick="if(confirm('确定要退出吗？')){location.href='/logout';}">退出</a></li>
		<li class="x_nhbx"><span th:text="'您好，'+${session.SPRING_SECURITY_CONTEXT.authentication.principal.truename}">|</span>&nbsp;&nbsp;</li> 
	  </ul>
	</div>
<!--~~~~~~~~~main~~~~~~~~~~~~~-->
	<div class="x_centerbx boxcenter">
    <!--~~~~~~~~~left~~~~~~~~~~~~~-->
		<div class="zyn_gzhleft">
			<div class="groupTree">
            	<ul class="zyn_gzhnav">
               		<!--menu1 -->
					<li id="fl01" class="unexpand"><a id="fa01" onclick="showMenu(1)" style="text-indent: 20px; background-position-x: 7px;">系统管理</a></li>   
					<ul id="fu01" class="zyn_gzhnavt" style="display:none;">
							<li onclick='g(this.id)' id="w11"><a  th:href="@{/toUser}" target="main" style="text-indent: 26px; background-position-x: 18px;text-decoration:none">用户列表</a></li>
                   			<li onclick='g(this.id)' id="w12"><a  th:href="@{/toRole}" target="main" style="text-indent: 26px; background-position-x: 18px;text-decoration:none">角色管理</a></li>
	                   		<li onclick='g(this.id)' id="w13"><a  th:href="@{/toPower}" target="main" style="text-indent: 26px; background-position-x: 18px;text-decoration:none">权限管理</a></li>
	                   		<li onclick='g(this.id)' id="w14"><a  th:href="@{/toPowerCatalog}" target="main" style="text-indent: 26px; background-position-x: 18px;text-decoration:none">资源分类管理</a></li>
               		</ul>
      
                    <!--menu9 -->
					<li id="fl09" class="unexpand"><a id="fa09" onclick="showMenu(9)" style="text-indent: 20px; background-position-x: 7px;">密码管理</a></li>   
					<ul id="fu09" class="zyn_gzhnavt" style="display:none;">
						<li onclick='g(this.id)' id="w61"><a  th:href="@{/toPassword}" target="main" style="text-indent: 26px; background-position-x: 18px;text-decoration:none">修改密码</a></li>
                <!--   ${session.SPRING_SECURITY_CONTEXT.authentication.principal.id} -->
                  	</ul>
                </ul>
				
			</div>
            <!--~~~~~~~~~right~~~~~~~~~~~~~-->
			<div class="box_r" style="min-height:750px">
				<iframe id="main" name="main" width="100%" height="700px" frameborder="0" scrolling="yes" th:src="@{/toUser}"></iframe>			
          	</div>
		</div> 
	</div>
</div>

</body>

</html>